home *** CD-ROM | disk | FTP | other *** search
/ Aminet 41 / Aminet 41 (2001)(Schatztruhe)[!][Feb 2001].iso / Aminet / comm / net / tf02.lha / TinyFugue / tf-lib / kbbind.tf < prev    next >
Text File  |  1996-04-10  |  2KB  |  87 lines

  1. ;;;; Default keybindings - Modified by Cheetah for Amiga compatibility.
  2. ;;; This file is loaded by stdlib.tf.
  3.  
  4. /~loaded kbbind.tf
  5.  
  6. /require kbfunc.tf
  7.  
  8. ;; Newline
  9.  
  10. /def -ib'^M'    = /DOKEY NEWLINE
  11.  
  12. /def defaultbind = \
  13.     /if /!ismacro -msimple -ib'%1'%; /then \
  14.         /def -ib'%1' = /%-1%;\
  15.     /endif
  16.  
  17. ;; ^J is DOWN on some terminals.
  18. /defaultbind ^J dokey newline
  19.  
  20. ;; Keys normally defined by stty.
  21.  
  22. /defaultbind ^H dokey_bspc
  23. /defaultbind ^? dokey_bspc
  24. /defaultbind ^W dokey_bword
  25. /defaultbind ^U dokey dline
  26. /defaultbind ^R dokey refresh
  27. /defaultbind ^V dokey lnext
  28.  
  29. ;; Keys normally defined by termcap.   
  30.  
  31. /defaultbind ^[^[A dokey_up
  32. /defaultbind ^[^[B dokey_down
  33. /defaultbind ^[^[C dokey_right
  34. /defaultbind ^[^[D dokey_left
  35.  
  36. /undef defaultbind
  37.  
  38. ;; Other useful bindings
  39. ;; Any dokey operation "foo" can be performed with "/dokey foo" or "/dokey_foo".
  40. ;; The only difference between the two invocations is efficiency.
  41.  
  42. /def -ib'^A'    = /dokey_home
  43. /def -ib'^B'    = /dokey_wleft
  44. /def -ib'^D'    = /dokey_dch
  45. /def -ib'^E'    = /dokey_end
  46. /def -ib'^F'    = /dokey_wright
  47. /def -ib'^G'    = /beep 1
  48. /def -ib'^I'    = /dokey page
  49. /def -ib'^K'    = /dokey_deol
  50. /def -ib'^L'    = /dokey redraw
  51. /def -ib'^N'    = /dokey recallf
  52. /def -ib'^P'    = /dokey recallb
  53. /def -ib'^T'    = /kb_transpose_chars
  54. /def -ib'^[^E'  = /kb_expand_line
  55. /def -ib'^[ '   = /kb_collapse_space
  56. /def -ib'^[-'   = /kb_goto_match
  57. /def -ib'^[.'   = /kb_last_argument
  58. /def -ib'^[<'   = /dokey recallbeg
  59. /def -ib'^[>'   = /dokey recallend
  60. /def -ib'^[J'   = /dokey selflush
  61. /def -ib'^[L'   = /dokey line
  62. /def -ib'^[_'   = /kb_last_argument
  63. /def -ib'^[b'   = /dokey_socketb
  64. /def -ib'^[c'   = /kb_capitalize_word
  65. /def -ib'^[d'   = /dokey_dword
  66. /def -ib'^[f'   = /dokey_socketf
  67. /def -ib'^[h'   = /dokey hpage
  68. /def -ib'^[j'   = /dokey flush
  69. /def -ib'^[l'   = /kb_downcase_word
  70. /def -ib'^[n'   = /dokey searchf
  71. /def -ib'^[p'   = /dokey searchb
  72. /def -ib'^[u'   = /kb_upcase_word
  73. /def -ib'^[v'   = /test insert := !insert
  74. /def -ib'^[^h'  = /kb_backward_kill_word
  75. /def -ib'^[^?'  = /kb_backward_kill_word
  76.  
  77. ;; Other common keyboard-specific mappings
  78. ;Insert
  79. /def -ib'^[^[2~' = /test insert := !insert
  80. ;F1
  81. /def -ib'^[^[?~'= /help
  82. ;PgDn
  83. /def -ib'^[^[S'  = /dokey page
  84. ;End
  85. /def -ib'^[Oq'  = /dokey flush
  86.  
  87.